//
//  SC_ChildViewController.h
//  BOSS-SOOC
//
//  Created by apple on 16/8/12.
//  Copyright © 2016年 Gcx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SC_NavBarView.h"

@interface SC_ChildViewController : UIViewController

@property (nonatomic, weak) SC_NavBarView *navbar;

// 设置导航栏在最上层
- (void)bringNavBarToTopmost;

// 是否隐藏导航栏
- (void)hideNavBar:(BOOL)bIsHide;

// 设置NavBarView 颜色
- (void)setNabbarBackgroundColor:(UIColor *)color;

// 设置标题
- (void)setNavBarTitle:(NSString *)strTitle;

// 设置导航栏左按钮
- (void)setNavBarLeftBtn:(UIButton *)btn;

// 设置导航栏右按钮
- (void)setNavBarRightBtn:(UIButton *)btn;

// 是否可右滑返回
- (void)navigationCanDragBack:(BOOL)canDragBack;


// 重设scroll view的内容区域和滚动条区域
- (void)resetScrollView:(UIScrollView *)scrollView tabBar:(BOOL)hasTabBar;

//NSUserDefaults object -->  key
- (NSString *)userDefaults:(NSString *)key;

//手机号的正则表达式
- (BOOL)checkTel:(NSString *)str;

//时间戳转换
- (NSString *)since1970String:(NSString *)data;

//判断空字符串
-(BOOL) isEmpty:(NSString *) str;

//身份证的正则表达式
- (BOOL) checkCardNo:(NSString*) cardNo;

//清除cookies
- (void)removecookies;

//判断特殊字符
- (NSString *)escapeCharacter:(NSString *)string;

//邮箱的正则表达式
-(BOOL)validateEmail:(NSString *)email;

//手机号的正则表达式
- (BOOL) validateMobile:(NSString *)mobile;

///16进制颜色转化
-(UIColor *)getColor:(NSString *)hexColor;

//转换透明度
- (UIImage *)imageByApplyingAlpha:(CGFloat)alpha  image:(UIImage*)image;

//用color生成图片
- (UIImage *)imageWithColor:(UIColor *)color;

- (NSInteger)sc_currentPageNumWithTotalCount:(NSInteger)total;

@end
